GtkNotebook: Clarify a switch statement
authorMatthias Clasen <mclasen@redhat.com>
Fri, 30 Nov 2012 03:48:27 +0000 (22:48 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 30 Nov 2012 04:10:34 +0000 (23:10 -0500)
We were intentionally falling through here, this commit
just adds comments to make that explicit.

gtk/gtknotebook.c

index 4d495c7321b269f3214d941a14572f97c720d3f5..377dc906b92093416aa81bfcbfff00ffc36f94ff 100644 (file)
@@ -2504,6 +2504,7 @@ gtk_notebook_size_allocate (GtkWidget     *widget,
                 {
                 case GTK_POS_TOP:
                   child_allocation.y += priv->cur_page->requisition.height;
+                  /* fall thru */
                 case GTK_POS_BOTTOM:
                   child_allocation.height =
                     MAX (1, child_allocation.height -
@@ -2511,6 +2512,7 @@ gtk_notebook_size_allocate (GtkWidget     *widget,
                   break;
                 case GTK_POS_LEFT:
                   child_allocation.x += priv->cur_page->requisition.width;
+                  /* fall thru */
                 case GTK_POS_RIGHT:
                   child_allocation.width =
                     MAX (1, child_allocation.width -